import {axios} from '@/utils/request'

// 园区树形接口
export function getTreeData(params) {
  return axios({
    url: '/api/hmhb/analysis/web/treeData',
    method: 'get',
    params
  })
}

// 解决报错
export function getFactoryList(params) {
  return axios({
    url: '/api/hmhb/analysis/web/getFactoryList',
    method: 'get',
    params
  })
}

// 企业列表
export function epQuery(params) {
  return axios({
    url: '/api/hmhb/analysis/web/epQuery',
    method: 'get',
    params
  })
}

//通过dictCode获取字典数据
export function queryDictModelByCode(params) {
  return axios({
    url: `/api/erpmng/sys/dict/getDictItems/${params.dictName}`,
    method: 'get',
  })
}

//初始化数据
export function initialData(params) {
  return axios({
    url: '/api/hmhb/analysis/web/initialData',
    method: 'get',
    params
  })
}

//查询企业详情
export function epDetailById(params) {
  return axios({
    url: '/api/hmhb/analysis/web/epDetailById',
    method: 'get',
    params
  })
}

//根据企业id查询日常核查
export function dailyCheckByEpId(params) {
  return axios({
    url: '/api/hmhb/analysis/web/dailyCheckByEpId',
    method: 'get',
    params
  })
}

//根据企业id查询雨污混接专项
export function sewageCheckByEpId(params) {
  return axios({
    url: '/api/hmhb/analysis/web/sewageCheckByEpId',
    method: 'get',
    params
  })
}

//根据企业id查询投诉专项
export function complaintsCheckByEpId(params) {
  return axios({
    url: '/api/hmhb/analysis/web/complaintsCheckByEpId',
    method: 'get',
    params
  })
}

//根据企业id查询其他专项
export function otherCheckByEpId(params) {
  return axios({
    url: '/api/hmhb/analysis/web/otherCheckByEpId',
    method: 'get',
    params
  })
}

//园区详情
export function parkDetailById(params) {
  return axios({
    url: '/api/hmhb/analysis/web/parkDetailById',
    method: 'get',
    params
  })
}

//企业列表
export function pageEpList(params) {
  return axios({
    url: '/api/hmhb/analysis/web/pageEpList',
    method: 'get',
    params
  })
}

//敏感点
export function sensitiveDetailById(params) {
  return axios({
    url: '/api/hmhb/analysis/web/sensitiveDetailById',
    method: 'get',
    params
  })
}

//园区数据分析
export function pieQuery(params) {
  return axios({
    url: '/api/hmhb/analysis/pie/query',
    method: 'get',
    params
  })
}